package com.csnf.demo7.dao;

import com.csnf.demo7.entity.TbCourse;

import java.io.IOException;
import java.util.List;

public interface TbCourseDao {
    List<TbCourse> getCourseList() throws IOException;

    List<TbCourse> getCourseListBname(String courseName) throws IOException;

    void addCourse(TbCourse tbCourse) throws IOException;

    void deleteCourse(Integer id) throws IOException;

    void updateCourse(TbCourse tbCourse) throws IOException;

    TbCourse getCourseById(Integer id) throws IOException;
}
